﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AdList.aspx.cs" Inherits="ETongJin.YM.Web.TuiGuang.AdList" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>广告列表 - 推广中心</title>
    <link href="images/skin.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript">
function CheckAll(obj)
{
var allcheck = document.getElementsByName("id");
for(i=0;i<allcheck.length;i++)
{
allcheck[i].checked = obj.checked;
}
}
    </script>

</head>
<body leftmargin="0" topmargin="0">
    <form id="form1" runat="server">
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
        <tr>
            <td width="17" height="29" valign="top" background="images/mail_leftbg.gif">
                <img src="images/left-top-right.gif" width="17" height="29" />
            </td>
            <td width="935" height="29" valign="top" background="images/content-bg.gif">
                <table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg"
                    id="table2">
                    <tr>
                        <td height="31">
                            <div class="titlebt" id="titlebt" runat="server">
                                广告管理</div>
                        </td>
                    </tr>
                </table>
            </td>
            <td width="16" valign="top" background="images/mail_rightbg.gif">
                <img src="images/nav-right-bg.gif" width="16" height="29" />
            </td>
        </tr>
        <tr>
            <td height="71" valign="middle" background="images/mail_leftbg.gif">
                &nbsp;
            </td>
            <td bgcolor="#F7F8F9">
                <table border="0" cellpadding="0" cellspacing="0" style="margin-top: 20px; width: 99%;">
                    <asp:Repeater ID="Repeater1" runat="server" OnItemCommand="Repeater1_ItemCommand"
                        OnItemDataBound="Repeater1_ItemDataBound">
                        <HeaderTemplate>
                            <tr style="text-align: center;">
                                <td width="30px">
                                    <input id="Checkbox1" type="checkbox" name="chkAll" onclick="CheckAll(this);" />
                                </td>
                                <td width="100px">
                                    搜索类型
                                </td>
                                <td width="150px">
                                    广告标题
                                </td>
                                <td width="80px">
                                    关键词
                                </td>
                                <td width="120px">
                                    广告状态
                                </td>
                                <td style="text-align: left; width: 100px;">
                                    相关操作
                                </td>
                            </tr>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr style="text-align: center;" class="left_txt">
                                <td>
                                    <input id="Checkbox1" type="checkbox" name="id" value="<%#Eval("id") %>" />
                                    <input id="Hidden1" type="hidden" runat="server" value='<%#Eval("id") %>' />
                                </td>
                                <td>
                                     <asp:Label ID="lbSearchType" runat="server" Text='<%#Eval("searchtype") %>'></asp:Label>
                                </td>
                                <td>
                                    <a href="<%#Eval("url") %>" target="_blank">
                                        <%#Eval("title")%></a>
                                </td>
                                <td>
                                    <asp:HyperLink ID="hlKeyWord" runat="server" Target="_blank" NavigateUrl='<%#Eval("searchtype") %>'
                                        Text='<%#Eval("keyword") %>'></asp:HyperLink>
                                </td>
                                <td>
                                    <asp:Label ID="lbPosition" runat="server" Text='<%#Eval("adstatus") %>'></asp:Label>
                                </td>
                                <td style="text-align: left">
                                    <asp:HyperLink ID="HyperLink1" NavigateUrl='<%#"ad.aspx?i="+Eval("id") %>' runat="server">修改</asp:HyperLink>
                                    <asp:LinkButton ID="LinkButton2" runat="server" CommandArgument="2" CausesValidation="false"
                                        OnClientClick="return confirm('您将删除这个广告!!?删除后不可恢复');">删除</asp:LinkButton>
                                </td>
                            </tr>
                        </ItemTemplate>
                    </asp:Repeater>
                    <tr>
                        <th colspan="6" style="margin-left: 30px; text-align: left;">
                            <asp:Button ID="Button1" runat="server" Text="批量删除" OnClientClick="return confirm('您确定删除选中的记录么?删除后不可恢复');"
                                OnClick="Button1_Click" />
                        </th>
                    </tr>
                    <tr>
                        <th colspan="6" style="text-align: center;">
                            <div id="tnt_pagination" class="left_txt">
                                <%= PageStr%></div>
                        </th>
                    </tr>
                </table>
            </td>
            <td background="images/mail_rightbg.gif">
                &nbsp;
            </td>
        </tr>
        <tr>
            <td valign="middle" background="images/mail_leftbg.gif">
                <img src="images/buttom_left2.gif" width="17" height="17" />
            </td>
            <td height="17" valign="top" background="images/buttom_bgs.gif">
                <img src="images/buttom_bgs.gif" width="17" height="17" />
            </td>
            <td background="images/mail_rightbg.gif">
                <img src="images/buttom_right2.gif" width="16" height="17" />
            </td>
        </tr>
    </table>
    </form>
</body>
</html>
